package com.dzx.design.creational.abstractfactory;

/**
 * @author dzx
 * @ClassName:
 * @Description: 抽象工厂
 * @date 2019年07月13日 15:58:10
 */
public class Test {
    public static void main(String[] args) {

        CourseFactory javaCourseFactory = new JavaCourseFactory();
        javaCourseFactory.getVideo().produce();
        javaCourseFactory.getArticle().produce();

        CourseFactory pythonCourseFactory = new PythonCourseFactory();
        pythonCourseFactory.getVideo().produce();
        pythonCourseFactory.getArticle().produce();
    }
}
